trace matrix and tables

hello,

I'm trying to print the RTM of inlinks and I would like to print all objects and their RTM's if applicable but when printing tables I would like to print a row then the RTM's for the individual cells within that row; I'm just not sure how to process the tables. Any help would be appreciated. Thank you.

-Jim
 

// DXL generated by DOORS traceability wizard on 05 February 2013.
// Wizard version 2.0, DOORS version 9.3.0.7
pragma runLim, 0
 
Module m = current
Object o
void showIn(Object o) {
    Link l
    LinkRef lr
    ModName_ otherMod = null
    Module linkMod = null
    ModuleVersion otherVersion = null
    Object othero
    string disp = null
    string s = null
    string linkModName = "*"
    for lr in all(o<-linkModName) do {
        otherMod = module (sourceVersion lr)
        if (!null otherMod) {
            if ((!isDeleted otherMod) && (null data(sourceVersion lr))) {
                load((sourceVersion lr),false)
            }
        }
    }
    for l in all(o<-linkModName) do {
        otherVersion = sourceVersion l
        otherMod = module(otherVersion)
        if (null otherMod || isDeleted otherMod) {delete otherVersion; continue}
        othero = source l
        if (null othero) {load(otherVersion,false)}
        othero = source l
        if (null othero) {delete otherVersion; continue}
        if (isDeleted othero) {delete otherVersion; continue}
        print "\n\t" fullName(module(othero)) "-" probeRichAttr_(othero,"Absolute Number", false)
        displayRich("\\pard " s)
    }
}
 
o = null
for o in entire m do {
        if (null o || isDeleted o) continue
        if(cell o) {// print table based on rows
        //print row then trace for all cells within row
        }
        else {
        print probeRichAttr_(othero,"Object Text", false)
        showIn(o)
        }
        print "\n"
}

SystemAdmin - Tue Feb 05 14:24:22 EST 2013

Re: trace matrix and tables
llandale - Tue Feb 05 16:19:01 EST 2013

I don't see where your layout function "showIn" applies here; I see it is not called.

I think you are asking for something like this:

for o in entire mod do
{  if (isDeleted(o)) continue
   if (cell(o) or row(o) continue  // These objects handled from the "table" persective
   if (!row(o))
   { // deal with undeleted normal object
   }
   else
   {    // Deal with this table.
      RowNumber = 0
      for oRow in o do
      {   // deal with this RowNumber of the table
         RowNumber++
         CellNumber = 0
         for oCell in oRow do
         {   // deal with the CellNumber of this RowNumber
             // I'm guessing  you check links of this cell here
            CellNumber++
         } // end dealing with a "cell"
      } // end dealing with a "row"
   }    // end dealing with a "table"
}       // end dealing with any Object

 


-Louie

PS: cannot "preview" I hope it looks good.

 

Re: trace matrix and tables
llandale - Tue Feb 05 16:21:29 EST 2013

llandale - Tue Feb 05 16:19:01 EST 2013

I don't see where your layout function "showIn" applies here; I see it is not called.

I think you are asking for something like this:

for o in entire mod do
{  if (isDeleted(o)) continue
   if (cell(o) or row(o) continue  // These objects handled from the "table" persective
   if (!row(o))
   { // deal with undeleted normal object
   }
   else
   {    // Deal with this table.
      RowNumber = 0
      for oRow in o do
      {   // deal with this RowNumber of the table
         RowNumber++
         CellNumber = 0
         for oCell in oRow do
         {   // deal with the CellNumber of this RowNumber
             // I'm guessing  you check links of this cell here
            CellNumber++
         } // end dealing with a "cell"
      } // end dealing with a "row"
   }    // end dealing with a "table"
}       // end dealing with any Object

 


-Louie

PS: cannot "preview" I hope it looks good.

 

"CellNumber" should be "ColumnNumber"